//package com.rp.api.article;
//
//import com.rp.bo.NewArticleBO;
//import com.rp.news.common.Result;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.validation.BindingResult;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//
//import javax.validation.Valid;
//import java.util.Date;
//
//@Api(value = "文章业务controller",tags={"文章业务controller"})
//@RequestMapping("article")
//public interface ArticleControllerApi {
//
//    @PostMapping("/createArticle")
//    @ApiOperation(value = "用户发文",notes = "用户发文",httpMethod = "POST")
//    Result createArticle(@RequestBody @Valid NewArticleBO newArticleBO, BindingResult result);
//
//
//    @PostMapping("/queryMyList")
//    @ApiOperation(value = "查询用户的所有文章列表",notes = "查询用户的所有文章列表",httpMethod = "POST")
//    Result queryMyList(@RequestParam String userId,
//                       @RequestParam String keyword,
//                       @RequestParam Integer status,
//                       @RequestParam Date startDate,
//                       @RequestParam Date endDate,
//                       @RequestParam Integer page ,
//                       @RequestParam Integer pageSize
//                       );
//
//    @PostMapping("/queryAllList")
//    @ApiOperation(value = "管理员查询用户的所有文章列表",notes = "管理员查询用户的所有文章列表",httpMethod = "POST")
//    Result queryAllList(@RequestParam Integer status,
//                       @RequestParam Integer page ,
//                       @RequestParam Integer pageSize
//    );
//
//    @PostMapping("/doReview")
//    @ApiOperation(value = "管理员对文章审核通过或者审核失败",notes = "管理员对文章审核通过或者审核失败",httpMethod = "POST")
//    Result doReview(@RequestParam String articleId,
//                        @RequestParam Integer passOrNot
//    );
//
//
//
//    @PostMapping("/delete")
//    @ApiOperation(value = "用户删除文章",notes = "用户删除文章",httpMethod = "POST")
//    Result delete(@RequestParam String articleId,
//                    @RequestParam String userId
//    );
//
//
//    @PostMapping("/withdraw")
//    @ApiOperation(value = "用户撤回文章",notes = "用户撤回文章",httpMethod = "POST")
//    Result withdraw(@RequestParam String articleId,
//                    @RequestParam String userId
//    );
//
//
//}
